from Ui_dialog import Ui_set_Dialog
from PyQt5.QtWidgets import QApplication, QMainWindow, QDialog
import sys
import warnings
warnings.filterwarnings("ignore", category=DeprecationWarning)
class mysetDialogUI(QDialog):
    def __init__(self):
        super().__init__()
        self.ui =Ui_set_Dialog()
        self.ui.setupUi(self)
        # self.initUIconnect()

#     def send(self):
#         text = self.ui.edit_send.text()
#
#     def clear(self):
#         self.ui.edit_send.clear()
#
# #关联槽函数
#     def initUIconnect(self):
#         self.ui.pushButton_send.clicked.connect(self.send)
#         self.ui.pushButton_clear.clicked.connect(self.clear)
#         self.ui.edit_send.returnPressed.connect(self.send)#在编辑框按下回车键链接send槽函数

if __name__ == '__main__':
    app = QApplication(sys.argv)
    w = mysetDialogUI()
    w.show()
    sys.exit(app.exec_())
